const { WebpackRunPlugin, WebpackDonePlugin } = require("./src/plugins");
const  { loader1, loader2 } = require("./src/loaders");

module.exports = {
  output: {
    filename: "[name].js",
    path: "./dist",
  },
  entry: "./example/node.js",
  plugins: [ new WebpackRunPlugin(), new WebpackDonePlugin()],
    //省略其他
    module: {
      rules: [
        {
          test: /\.js$/,
          use: [loader1, loader2],
        },
      ],
    },
};
